package com.tzbank.entity.backstage;

import com.tzbank.entity.BaseModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.Table;

import javax.persistence.Column;
import javax.persistence.Entity;
import java.io.Serializable;

/**
 * 权限关联模块表
 * @author XUZONGTIAN
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Entity(name = "mb_auth_module")
@Table(appliesTo = "mb_auth_module", comment = "权限关联模块表")
public class AuthModule extends BaseModel implements Serializable {

	private static final long serialVersionUID = 4465907070385295122L;

	/**
	 * 权限ID
	 */
	@ApiModelProperty(value = "权限ID")
	@Column(name = "auth_id", columnDefinition = "INT(11) NOT NULL COMMENT '权限ID'")
	private Integer authId;

	/**
	 * 模块ID
	 */
	@ApiModelProperty(value = "模块ID")
	@Column(name = "module_id", columnDefinition = "INT(11) NOT NULL COMMENT '模块ID'")
	private Integer moduleId;

}
